import { createBrowserRouter } from "react-router-dom";
import Layout from "@/page/Layout/index.jsx";
import New from "@/page/New/index.jsx";
import Month from "@/page/Layout/Month/index.jsx";
import Year from "@/page/Layout/Year/index.jsx";

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        index: true,
        element: <Month />
      },
      {
        path: '/year',
        element: <Year />,
      }
    ]
  },
  {
    path: '/new',
    element: <New />
  }
])

export default router